<style>
iframe {
    position: fixed;
    border: none;
    top: 0; right: 0;
    bottom: 0; left: 0;
    width: 100%;
    height: 100%;
}
</style>
<div id="mapPage" style="height:100%"></div>
<script>
$('#mapPage').html('<iframe src="'+scope.pagedata.apiurl+'" width="100%" height="100%" style="min-height:500px;" frameborder="0"></iframe>');
</script>